import request from '@/utils/request'

export function getGoodsCategory(gid) {
  return request({
    url: 'backstage/goodsCategory/category/' + gid,
    method: 'get'
  })
}

export function delGoodsCategory(id) {
  return request({
    url: "backstage/goodsCategory/delCategory/" + id,
    method: 'delete'
  });
}

export function addGoodsCategory(data) {
  return request({
    url: "backstage/goodsCategory",
    method: "post",
    data: data
  });
}
